import 'package:flutter/material.dart';

class DrawUtil {
  final BuildContext? _context;

  DrawUtil(this._context);
  _isNull() {
    if (_context == null) {
      throw Exception(["DrawUtil context is null"]);
    }
  }

  open() {
    _isNull();
    Scaffold.of(_context!).openDrawer();
  }

  close() {
    _isNull();
    Navigator.pop(_context!);
  }
}
